package atri.service.Impl;

import atri.mapper.BooklistMapper;
import atri.model.Booklist;
import atri.service.BooklistService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Repository
public class BooklistServiceImpl extends ServiceImpl<BooklistMapper, Booklist> implements BooklistService{

    @Autowired
    BooklistMapper mapper;
    @Override
    public List<Booklist> find_re_id(int re_id) {
        List<Booklist> booklists = mapper.find_re_id(re_id);
        return booklists;
    }

    @Override
    public boolean del_re_id(int id) {
        boolean a = mapper.del_re_id(id);
        return a;
    }

    @Override
    public int insert_many(List<Booklist> booklists) {
        return mapper.insert_many(booklists);
    }
}
